package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProDailyMapper;
import com.ruoyi.system.domain.ProDaily;
import com.ruoyi.system.service.IProDailyService;

/**
 * 每日日报汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-08
 */
@Service
public class ProDailyServiceImpl implements IProDailyService 
{
    @Autowired
    private ProDailyMapper proDailyMapper;

    /**
     * 查询每日日报汇总
     * 
     * @param dailyId 每日日报汇总主键
     * @return 每日日报汇总
     */
    @Override
    public ProDaily selectProDailyByDailyId(Long dailyId)
    {
        return proDailyMapper.selectProDailyByDailyId(dailyId);
    }

    /**
     * 查询每日日报汇总列表
     * 
     * @param proDaily 每日日报汇总
     * @return 每日日报汇总
     */
    @Override
    public List<ProDaily> selectProDailyList(ProDaily proDaily)
    {
        return proDailyMapper.selectProDailyList(proDaily);
    }

    /**
     * 新增每日日报汇总
     * 
     * @param proDaily 每日日报汇总
     * @return 结果
     */
    @Override
    public int insertProDaily(ProDaily proDaily)
    {
        return proDailyMapper.insertProDaily(proDaily);
    }

    /**
     * 修改每日日报汇总
     * 
     * @param proDaily 每日日报汇总
     * @return 结果
     */
    @Override
    public int updateProDaily(ProDaily proDaily)
    {
        return proDailyMapper.updateProDaily(proDaily);
    }

    /**
     * 批量删除每日日报汇总
     * 
     * @param dailyIds 需要删除的每日日报汇总主键
     * @return 结果
     */
    @Override
    public int deleteProDailyByDailyIds(Long[] dailyIds)
    {
        return proDailyMapper.deleteProDailyByDailyIds(dailyIds);
    }

    /**
     * 删除每日日报汇总信息
     * 
     * @param dailyId 每日日报汇总主键
     * @return 结果
     */
    @Override
    public int deleteProDailyByDailyId(Long dailyId)
    {
        return proDailyMapper.deleteProDailyByDailyId(dailyId);
    }
}
